﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PTTK_HTTT_06.DAO;

namespace PTTK_HTTT_06.BUS
{
    public class MON_AN
    {
        public int MaMonAn { get; set; }
        public string TenMonAn { get; set; }

        public static List<MON_AN> LayDanhSach()
        {
            return MON_AN_DB.LayDanhSach();
        }

        internal static void ThemMonAn(MON_AN _nguyenLieu)
        {
            MON_AN_DB.ThemMonAn(_nguyenLieu);
        }

        public int LayMaMonAnTheoTen(string p)
        {
            return MON_AN_DB.LayMaMonAnTheoTen(p);
        }
    }
}
